<div class="zs-body"
	data-ng-init="formInit('gisproject', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{order:0}
    }) && loadData('gisproject');setConHei();">
	<div class="zs-map-tool">
		<div class="location">
			<a href="javascript:;">首页</a> <i class="right-arr"></i> <a
				href="javascript:;">地图配置</a> <i class="right-arr"></i> <a
				href="javascript:;">同步工程</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建"
				ng-click="addRow('gisproject') && openWindow('edit');" /> <input
				type="button" class="zs-btn orange" value="编辑"
				ng-click="editRow('gisproject', gisproject.sRows[0]) && openWindow('edit')" />
			<input type="button" class="zs-btn orange" value="删除 "
				ng-click="delEntitys('gisproject')" />
		</div>
	</div>
	<div class="zs-content" style="position: unset">
		<div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left: 6px;">
				<span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="主键"
					ng-model="gisproject.queryObject['iD']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="图层ID"
					ng-model="gisproject.queryObject['layerID']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="图层名称"
					ng-model="gisproject.queryObject['layerName']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="图层类型"
					ng-model="gisproject.queryObject['layerType']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="是否显示"
					ng-model="gisproject.queryObject['show']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="是否可选择"
					ng-model="gisproject.queryObject['canSelect']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="是否可编辑"
					ng-model="gisproject.queryObject['canEdit']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="是否有效"
					ng-model="gisproject.queryObject['valid']" />
				</span> <span class="search-warpper"> <i class="icon"></i> <input
					type="text" class="zs-input" placeholder="排序"
					ng-model="gisproject.queryObject['order']" />
				</span>
			</div>
			<div class="operation item">
				<a class="ope-1" ng-click="loadData('gisproject')"></a> <a
					class="ope-2"></a>
			</div>
			<div class="switch"></div>
		</div>
		<div class="date-container">
			<div id="zpgwd">
				<div class="zs-data-table">
					<div class="container">
						<table>
							<thead>
								<tr>
									<th><input id="allCheckbox" type="checkbox"
										ng-click="selectAll('gisproject','allCheckbox');" /></th>
									<th>主键</th>
									<th>图层ID</th>
									<th>图层名称</th>
									<th>图层类型</th>
									<th>是否显示</th>
									<th>是否可选择</th>
									<th>是否可编辑</th>
									<th>是否有效</th>
									<th>排序</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="r in gisproject.datas">
									<td><input type="checkbox"
										ng-click="selectRow('gisproject',r);" ng-model="r.selected" />
									</td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.iD"></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.layerID"></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.layerName"></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.layerType"></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.show | asChineseBool "></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.canSelect | asChineseBool "></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.canEdit | asChineseBool "></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.valid | asChineseBool "></label>
									</a></td>
									<td><a
										ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.order"></label>
									</a></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="zs-pagination-box">
					<ag-Page fn='gisproject'></ag-Page>
				</div>
			</div>
		</div>

		<div ag-Window id="edit" title="同步工程编辑" width='560px' height='286px'>
			<div class="zs-form-tab ibox">
				<form name="form" novalidate>
					<table width="100%">
						<tbody>
							<tr>
								<td class="text" width="20%">主键</td>
								<td class="left" width="30%"><input type="text"
									ng-model="gisproject.editRow.iD" class="zs-input" /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">图层ID</td>
								<td class="left" width="30%"><input type="text"
									ng-model="gisproject.editRow.layerID" class="zs-input" /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">图层名称</td>
								<td class="left" width="30%"><input type="text"
									ng-model="gisproject.editRow.layerName" class="zs-input" /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">图层类型</td>
								<td class="left" width="30%"><input type="text"
									ng-model="gisproject.editRow.layerType" class="zs-input" /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">是否显示</td>
								<td class="left" width="30%"><input type="checkbox"
									ng-model="gisproject.editRow.show" ng-true-value="true"
									ng-false-value="false" value='false' /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">是否可选择</td>
								<td class="left" width="30%"><input type="checkbox"
									ng-model="gisproject.editRow.canSelect" ng-true-value="true"
									ng-false-value="false" value='false' /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">是否可编辑</td>
								<td class="left" width="30%"><input type="checkbox"
									ng-model="gisproject.editRow.canEdit" ng-true-value="true"
									ng-false-value="false" value='false' /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">是否有效</td>
								<td class="left" width="30%"><input type="checkbox"
									ng-model="gisproject.editRow.valid" ng-true-value="true"
									ng-false-value="false" value='false' /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
							<tr>
								<td class="text" width="20%">排序</td>
								<td class="left" width="30%"><input type="text"
									ng-model="gisproject.editRow.order" class="zs-input" /></td>
								<td class="text" width="20%"></td>
								<td class="left" width="30%"></td>
							</tr>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="4"><input type="button" name="ok" value="保存"
									class="zs-btn c-red"
									ng-click="formValidate(form) && save('gisproject', gisproject.editRow, saveCloseWindow)" />
									<input type="button" name="ok" value="取消"
									class="zs-btn c-green" ng-click="closeWindow('edit')" /></td>
							</tr>
						</tfoot>
					</table>
				</form>
			</div>
		</div>
	</div>
</div>